package com.yang.springboot.web.service.impl;

import com.yang.springboot.mapper.PlayersMapper;
import com.yang.springboot.model.Players;
import com.yang.springboot.web.service.IPlayerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yanwei.yang
 * @date 2021/11/15 17:54
 * @description:
 */
@Service
public class PlayerServiceImpl implements IPlayerService {

    @Resource
    private PlayersMapper mapper;

    @Override
    public Players getById(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }
}
